package com.nageoffer.shortlink.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: UserFlowRiskControlConfiguration
 * Package:
 * Description:  用户操作流量配置文件
 *
 * @Author:xiaohei
 * @Create 2024/6/14 9:23
 * Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-link.flow-limit")
public class UserFlowRiskControlConfiguration {

    /**
     * 是否开启配置
     */
    private Boolean enable;

    /**
     *时间流量分控时间窗口  单位：秒
     */
    private String timeWindow;

    /*
    流量风控时间内可访问次数
     */
    private Integer maxAccessCount;

}
